<?php

namespace adminmatrix\plugin;

class Scripts
{
    /**
     * 创建plugins目录
     */
    public static function createPluginsDir()
    {
        $rootPath = dirname(dirname(dirname(__DIR__)));
        $pluginsDir = $rootPath . DIRECTORY_SEPARATOR . 'plugins';

        if (!is_dir($pluginsDir)) {
            mkdir($pluginsDir, 0755, true);
            echo "Created plugins directory at: {$pluginsDir}\n";
        }
    }
} 